<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./plugin/jQuery/jquery-3.6.0.js"></script>
</head>
<body>
    <img src="/common/download?name=00002.jpg">
    <img src="http://localhost:8080/MapleLeafStore/upload/00003.jpg">
    <form method="post" action="/common/upload" enctype="multipart/form-data">
        <input type="file" name="file">
        <input type="submit" value="提交">
    </form>
    <img src="" id="test">

    <script>
        $("form").onsubmit = function (){
            $("#test").attr("src","/common/download")
        }
    </script>
</body>
</html>